// ActionScript file
import mx.controls.Alert;
import mx.rpc.events.ResultEvent;

import user.moudle.classes.UserImpl;
import user.moudle.interfaces.IUser;

public function login():void{
	var name:String = userName.text;
	var password:String =  passWord.text;
	var userOperate:IUser = new UserImpl();
	userOperate.login(name,password,function(e:ResultEvent):void{
		var msg:String = e.result as String;
		if("success" == msg){
			Alert.show("登陆成功");
		}else{
			Alert.show("密码不正确");
		}
	});
}